package com.cool.springcloud.utils;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/8/18 13:58
 * @Version 1.0.0
 * @Description
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AjaxResult<T> {
    private Integer code;
    private String message;
    private T data;

    public AjaxResult(Integer code, String message) {
        this(code, message, null);
    }
}
